@echo off

%windir%\Microsoft.NET\Framework\v4.0.30319\csc /out:.\tools\setcolor.exe .\tools\setcolor.cs
%windir%\Microsoft.NET\Framework\v4.0.30319\csc /out:.\tools\versioncontrol.exe .\tools\versioncontrol.cs

.\tools\versioncontrol .\CSXC 1.2
.\tools\versioncontrol .\Enyo 1.0
.\tools\versioncontrol .\enyo2 2.2
.\tools\versioncontrol .\Mojo 1.0
.\tools\versioncontrol .\jQuery 1.7
.\tools\versioncontrol .\ScriptFx 0.9


echo build start>buildlog.txt

cd CSXC
call build %1
cd ..

cd enyo2
call build %1
cd ..

::cd Mojo
::call build %1
::cd ..

::cd jQuery
::call build %1
::cd ..

::cd ScriptFx
::call build %1
::cd ..

::cd VSTemplate
::call make-package.bat
::cd ..

echo build finish>>buildlog.txt


%windir%\Microsoft.NET\Framework\v4.0.30319\csc /out:.\tools\codestat.exe .\tools\codestat.cs 
Tools\CodeStat . cs,js > lines.txt